package com.zzq.my.jetpacks.jectpackapp.adapter

import com.chad.library.adapter.base.BaseSectionQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zzq.my.jetpacks.jectpackapp.R
import com.zzq.my.jetpacks.jectpackapp.bean.AccountInRecordInfo2
import com.zzq.my.jetpacks.jectpackapp.bean.AccountOutRecordInfo2

/**
 * 描述：class describe
 * 作者：zhuangzeqin
 * 时间: 2022/9/11-21:47
 * 邮箱：zzq@eeepay.cn
 * 备注:
 */
class AccountOutRecordGroupAdapter2(data:MutableList<AccountOutRecordInfo2>)
    :BaseSectionQuickAdapter<AccountOutRecordInfo2,BaseViewHolder>
    (R.layout.shop_incoming_item_record_out_head,R.layout.shop_incoming_item_record_out_content,data) {
    override fun convert(holder: BaseViewHolder, item: AccountOutRecordInfo2) {
        holder.setText(R.id.tv_title, item.childItem?.itemTitle)
        holder.setText(R.id.tv_sub_date, item.childItem?.itemDate)
        holder.setText(R.id.atv_amount, item.childItem?.itemAmount)
        holder.setText(R.id.atv_status, item.childItem?.itemStatus)
    }

    override fun convertHeader(holder: BaseViewHolder, item: AccountOutRecordInfo2) {
        holder.setText(R.id.tv_date, item.date)
        holder.setText(R.id.tv_total, item.total)
    }
}